package com.financing.platform.service.impl;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.financing.platform.dao.IFpRelevanceDao;
import com.financing.platform.dto.FpRelevanceDTO;
import com.financing.platform.service.IFpRelevanceService;

@Service("fpRelevanceServiceImpl")
@Component("fpRelevanceServiceImpl")
@Transactional
public class FpRelevanceServiceImpl extends BaseServiceImpl implements IFpRelevanceService {
	@Autowired
	IFpRelevanceDao fpRelevanceDao;
	
	@Override
	public int addFpRelevance(FpRelevanceDTO fpRelevanceDTO)
			throws SQLException {
		return fpRelevanceDao.addFpRelevance(fpRelevanceDTO);
	}

	@Override
	public List<Map<String, String>> queryFpRelevance(
			FpRelevanceDTO fpRelevanceDTO) throws SQLException {
		return fpRelevanceDao.queryFpRelevance(fpRelevanceDTO);
	}

	@Override
	public int deleteFpRelevance(FpRelevanceDTO fpRelevanceDTO)
			throws SQLException {
		return fpRelevanceDao.deleteFpRelevance(fpRelevanceDTO);
	}
	
	

}
